module immd_ext(out, in, s_z, ExtMux);
input[7:0] in;
input s_z;
input ExtMux;

output[15:0] out;
wire[15:0] out_0;
wire[15:0] out_1;

assign out = (ExtMux)? out_1 : out_0;

immd_ext_0 ie0(.out(out_0), .in(in[4:0]), .s_z(s_z));
immd_ext_1 ie1(.out(out_1), .in(in), .s_z(s_z));


endmodule
